package cn.sx.entity;

/*
 *@program:sx_emall_ssm
 *@author: sx
 *@desc:  产品分类显示
 *@Time: 2020/9/18  22:25
 */

import org.springframework.stereotype.Component;

@Component
public class Type {
        private int id;//编号
        private String name;//名称
        private int num;//顺序

    public Type() {
    }

    public Type(int id, String name, int num) {
        this.id = id;
        this.name = name;
        this.num = num;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Type{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", num=" + num +
                '}';
    }
}
